
$(function(){
	let news=$(".news-a").remove();
		$.get(
			"news-class-json.do",
			function(data) {
				$.each(data, function(name, item) {
					let news1=news.clone();
					if(item.newsClassId==6){
					news1.attr("style","display:none");
					}else{
						news1.attr("href","news-index-"+item.newsClassId+".html");
					news1.text(item.newsClassName);
					}
					
					$(".div1").before(news1);
				});
			}, "json"
		);
		
});